<?php
include_once "../common.php";
?>
<table>
	<tr>
		<td>
			E-mail
		</td>
		<td>:</td>
		<td>
			<input type="text" id="wwvergetenemail" />
		</td>
	</tr>
	<tr>
		<td colspan="3">
		</td>
	</tr>
	<tr>
		<td colspan="3" align="right">
			<input type="button" value=" Nieuw wachtwoord aanvragen " onclick="javascript: requestNewPassword();" />
		</td>
	</tr>
</table>
<script>
	function requestNewPassword()
	{
		var url = 'factory/requestNewPassword.php';
		var email = $('#wwvergetenemail').val();
		$.post(
			url, 
			{
				email: email
			}, 
			function(data){
				alert(data);
				$(".popup").dialog('destroy');
		});
	}
</script>